<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <nav class="navbar navbar-default">
                            <div class="collapse navbar-collapse">
                                <form class="navbar-form form-inline" action="{:U('Equipment/equipmentList')}" method="post">
                                    <div class="form-group">
                                        <input type="text" name="keywords" class="form-control" placeholder="请输入设备名称">
                                    </div>
                                    <div class="form-group">
                                        <select name="equipment_type" class="form-control">
                                            <option value="0">==查看所有==</option>
                                            <option value="1">儿童康复水疗设备</option>
                                            <option value="2">成人康复水疗设备</option>
                                            <option value="3">康复水疗辅助设备</option>
                                            <option value="4">医用康复训练设备</option>

                                        </select>
                                    </div>
                                    <button type="submit" class="btn btn-primary">查询</button>
                                    <div class="form-group pull-right">
                                        <a href="{:U('Equipment/add')}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> 添加出厂设备信息</a>
                                    </div>
                                </form>
                            </div>
                        </nav>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <table id="list-table" class="table table-bordered table-striped dataTable">
                                    <thead>
                                        <tr role="row">
                                            <th>设备id</th>
                                            
                                            <th>设备名称</th>
                                            <th>设备类型</th>
                                            <th>设备图片</th>
                                            <!-- <th>设备链接</th> -->
                                            <!-- <th>新窗口</th> -->
                                            <!-- <th>是否显示</th> -->
                                            <!-- <th>排序</th> -->
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <foreach name="list" item="vo" key="k">
                                            <tr role="row">
                                                <td>{$vo[equipment_id]}</td>
                                                <td>{$vo.equipment_name}</td>
                                                <td>
                                                    <if condition="$vo.equipment_type eq 1"> 儿童康复水疗设备
                                                    <elseif condition="$vo.equipment_type eq 2"/>成人康复水疗设备
                                                    <elseif condition="$vo.equipment_type eq 3"/>康复水疗辅助设备
                                                    <else /> 医疗康复训练设备
                                                    </if>
                                                </td>
                                                
                                                <td><img alt="" src="{$vo.equipment_img}" width="80px" height="50px"></td>
                                                <!-- 设备链接 -->
                                                <!-- <td>{$vo.ad_link}</td> -->
                                                <!-- 新窗口 -->
                                               <!--  <td>
                                                    <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[target] eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('ad','ad_id','{$vo.ad_id}','target',this)" />
                                                </td> -->
                                                <!-- <td>
                                                    <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[enabled] eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('ad','ad_id','{$vo.ad_id}','enabled',this)" />
                                                </td> -->
<!--                                                 <td>
                                                    <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="updateSort('ad','ad_id','{$vo.ad_id}','orderby',this)" size="4" value="{$vo.orderby}" class="input-sm" />
                                                </td> -->
                                                <td>
                                                    <a class="btn btn-primary" href="{:U('Equipment/equipmentHandle',array('act'=>'edit','equipment_id'=>$vo['equipment_id']))}"><i class="fa fa-pencil"></i></a>
                                                    <a class="btn btn-info" href="{:U('Equipment/get_qrcode',array('id'=>$vo['equipment_id']))}"><i class="fa fa-qrcode"></i></a>
                                                    <a class="btn btn-danger" href="{:U('Equipment/equipment_delete',array('id'=>$vo['equipment_id']))}"><i class="fa fa-trash-o"></i></a>

                                                </td>
                                            </tr>
                                        </foreach>
                                    </tbody>
                                    <tfoot>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6 text-left">
                                <button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
                            </div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <script>
    </script>
</div>
</body>

</html>